//
//  SEGBigNavigationView.h
//  SEGBasicBussiness
//
//  Created by 揭婧雯 on 2018/12/17.
//  Copyright © 2018 刘山. All rights reserved.
//

#import <UIKit/UIKit.h>

#define KBigNavTitleLabelHeight 60
#define KBigNavHeight (KBigNavTitleLabelHeight + kStatusbarHeight)
// 大标题导航整体高度 (带返回按钮)
#define kBackBtn_BigNavHeight (kStatusbarHeight + 109.f)
static CGFloat addPadding = 5.0; //扩大点击范围，上下左右各加5

typedef NS_ENUM(NSUInteger, SEGBigNavBarType) {
    SEGBigNavBar_normal,    // 不带返回按钮
    SEGBigNavBar_backBtn    // 带返回按钮
};

@interface SEGBigNavigationView : UIView

/**
 右侧按钮 右侧只有一个按钮时，即通过addRightButtonWithImage添加的才能获取到
 */
@property (nonatomic, strong) UIButton *rightButton;

/**
 标题左边间距  (默认30pt)
 */
@property (nonatomic, assign) CGFloat leftMargin;
/**
 标题字体大小 (默认bold_25)
 */
@property (nonatomic, assign) CGFloat fontSize;
/**
 设置大标题样式 (带返回按钮的大标题可通过该方法)
 
 @param type 标题类型
 @return 大标题视图
 */
- (instancetype)initWithType:(SEGBigNavBarType)type NS_DESIGNATED_INITIALIZER;

#pragma mark - 设置标题
// 设置标题
- (void)setTitleWithString:(NSString *)string;
// 设置标题图片
- (void)setTitleWithImage:(UIImage *)image;
// 添加点击标题的block
- (void)addTitleTapBlock:(void(^)(void))block;
// 显示标题旁的箭头
- (void)showArrowImage;


#pragma mark - 设置按钮
// 添加唯一的右侧按钮
- (void)addRightButtonWithImage:(UIImage *)image tapBlock:(void(^)(void))block;
- (void)addRightButtonWithTitle:(NSString *)title tapBlock:(void(^)(void))block;
- (void)addRightButtonWithImage:(UIImage *)image title:(NSString *)title tapBlock:(void (^)(void))block;
- (void)updateRightButtonRedDot:(BOOL)isRedDot;

/**
 * 添加多个右侧按钮
 * @author Wendy
 * @param buttonArray  按钮数组
 */
- (void)addRightButtonsWithButtonArray:(NSArray *)buttonArray;

@end
